import request from '@/utils/request'

//获取工作汇报列表(我收到的type=copy)
export function getWorkReportList(query) {
  return request({
    url: '/workReport/list',
    method: 'get',
	  params: query
  })
}

//获取工作汇报详情
export function getDetail(query) {
  return request({
    url: '/workReport/getDetail',
    method: 'get',
	  params: query
  })
}
//获取工作汇报详情
export function getReadList(query) {
  return request({
    url: '/workReport/getReadList',
    method: 'get',
	  params: query
  })
}
//添加汇报
export function addWorkReport(query) {
  return request({
    url: '/workReport/add',
    method: 'post',
	  data: query
  })
}
//修改汇报
export function editWorkReport(query) {
  return request({
    url: '/workReport/edit',
    method: 'put',
	  data: query
  })
}
//删除汇报
export function deleteWorkReport(workReportId) {
  return request({
    url: '/workReport/delete/'+workReportId,
    method: 'delete'
  })
}
//修改状态为已读
export function updWorkReport(id) {
  return request({
    url: '/workReport/changeView/'+id,
    method: 'post'
  })
}








